package com.tuzhi.base.web.vo;

import java.io.Serializable;

/**
 * 统一 返回数据规范类
 *
  */
public class Result<T> implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    /**
     * 错误码
     */
    private String code;
    /**
     * 数据
     */
    private T data;
    /**
     * 错误信息描述
     */
    private String description;

    /**
     * 拓展字段
     */
    private Object extra;


    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Object getExtra() {
        return extra;
    }

    public void setExtra(Object extra) {
        this.extra = extra;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}

